<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<h1>xx网站</h1>
<c:if test="${user==null }">
<a href="${pageContext.request.contextPath }/RegisterUIServlet"></a>
<a href="${pageContext.request.contextPath }/LoginUIServlet"></a>
</c:if>
<c:if test="${user!=null }">
欢迎您
</c:if>
<input type="button" value="退出登陆" onclick="doLogout()">
</body>
<script type="text/javascript">
function doLogout(){
	window.location.href="${pageContext.request.contextPath}/LogoutServlet";
	
	
}



</script>
</html>